home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / news / readers / skim-0.8 / skim-0 / skim-0.8.4 / ArticleP.h < prev    next >
C/C++ Source or Header  |  1996-02-18  |  2KB  |  64 lines

  1. /*
  2.  * NAME
  3.  *   ArticleP.h
  4.  * DESCRIPTION
  5.  *   Private include file of the Article class and of its component classes.
  6.  * COPYRIGHT
  7.  *   Skim - Off-line news reading package optimized for slow lines.
  8.  *   Copyright (C) 1996  Rene W.J. Pijlman
  9.  *
  10.  *   This program is free software; you can redistribute it and/or modify
  11.  *   it under the terms of the GNU General Public License as published by
  12.  *   the Free Software Foundation; either version 2 of the License, or
  13.  *   (at your option) any later version.
  14.  * 
  15.  *   This program is distributed in the hope that it will be useful,
  16.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  17.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18.  *   GNU General Public License for more details.
  19.  * 
  20.  *   You should have received a copy of the GNU General Public License
  21.  *   along with this program; if not, write to the Free Software
  22.  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  23.  * VERSION
  24.  *   Skim version 0.8.4.
  25.  */
  26.  
  27. /*
  28.  * The header lines of an article are represented as a set of name value 
  29.  * pairs.
  30.  *
  31.  * The "Lines" header line is an exception. The number of lines in the article
  32.  * is computed from the body of the article. The "Lines" header line in an
  33.  * incoming or stored article is ignored.
  34.  */
  35. struct _HeaderLine {
  36.     VarBuf Name;
  37.     VarBuf Value;
  38. };
  39.  
  40. struct _Header {
  41.     Set HeaderLines;        /* Set of (struct _HeaderLine *). */
  42.  
  43.     VarBuf ErrorMessages;
  44. };
  45.  
  46. struct _Body {
  47.     /*
  48.      * The content of the article, in UNIX text file format ('\n' terminated
  49.      * lines).
  50.      */
  51.     VarBuf Text;
  52.  
  53.     VarBuf ErrorMessages;
  54. };
  55.  
  56. struct _Article {
  57.     Header ArticleHeader;
  58.     Body ArticleBody;
  59.  
  60.     VarBuf ErrorMessages;
  61. };
  62.  
  63. #define BUFFER_SIZE_FOR_DATE 128
  64.